<template>
  <div id="top-nav-bar">
    <div class="top-nav-bar-left"><img src="~assets/images/studentHead.svg" alt=""></div>
    <div class="top-nav-bar-right">
      <div class="top-nav-bar-right-change">
        <slot name="top-nav-bar-right-change"/>
        </div>
        <div class="user-right">
          <span>用户名</span>
          <img src="" alt="">用户头像
          </div>
        </div>
  </div>
</template>
<script lang="ts">
import { Vue } from 'vue-property-decorator'

export default class TopNavBar extends Vue{}
</script>
<style lang="less">
#top-nav-bar{
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 4rem;
  padding: 1rem 2rem;
  background: linear-gradient(90deg,#1276ff,#0a55bc);
  .top-nav-bar-left,
  .top-nav-bar-right{
      height: 5%;
  }
  .top-nav-bar-left{
    img{
      height:2rem;
    }
  }
}
</style>